<?php

class Sendmail extends CFormModel
{
	public $subject;
	public $msg;



	public function rules()
	{
		return array(
			// name, email, subject and body are required
			array('subject, msg', 'required'),
            array('subject', 'length', 'max'=>100),
            array('subject, msg', 'safe'),
		);
	}

	
	public function attributeLabels()
	{
		return array(
            'subject'=>'Тема письма',
            'msg'=>'Сообщение',
		);
	}
}